﻿<Window 
    x:Class="Milkify.Views.PickerPopupControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    WindowStyle="None"
    AllowsTransparency="True"
    WindowStartupLocation="CenterOwner"
    Width="500"
    SizeToContent="Height"
    ShowInTaskbar="False"
    Style="{DynamicResource PopupWindowStyle}">
    <Window.Resources>
        <sys:String x:Key="DefaultTextFilterMessage">Type something to filter the list...</sys:String>
    </Window.Resources>
    <Border
        Style="{DynamicResource PopupWindowBorderStyle}">
        <Grid
            Style="{DynamicResource PopupWindowInnerStyle}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock
                Name="TextFilter"
                Grid.Row="0"
                TextWrapping="Wrap"
                Style="{DynamicResource PopupHeadingTextStyle1}" />
            <ListBox
                Name="ListLabels"
                Grid.Row="1"
                IsSynchronizedWithCurrentItem="True"
                ItemsSource="{Binding Labels}"
                Style="{DynamicResource PopupLabelListStyle}">
            </ListBox>
        </Grid>
    </Border>
</Window>
